package org.schrag.sbbdroid.data;

import java.io.Serializable;
import java.util.Date;

public class Part implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private long start;
	private long end;
	private String trackStart;
	private String trackEnd;
	private String from;
	private String to;
	private String comment;
	private String type;
	private String train;
	private String infoUrl;


	/**
	 * @return the start
	 */
	public Date getStart() {
		return new Date(start);
	}

	/**
	 * @param start
	 *            the start to set
	 */
	public void setStart(Date start) {
		this.start = start.getTime();
	}

	/**
	 * @return the end
	 */
	public Date getEnd() {
		return new Date(end);
	}

	/**
	 * @param end
	 *            the end to set
	 */
	public void setEnd(Date end) {
		this.end = end.getTime();
	}

	/**
	 * @return the trackStart
	 */
	public String getTrackStart() {
		return trackStart;
	}

	/**
	 * @param trackStart
	 *            the trackStart to set
	 */
	public void setTrackStart(String trackStart) {
		this.trackStart = trackStart;
	}

	/**
	 * @return the trackEnd
	 */
	public String getTrackEnd() {
		return trackEnd;
	}

	/**
	 * @param trackEnd
	 *            the trackEnd to set
	 */
	public void setTrackEnd(String trackEnd) {
		this.trackEnd = trackEnd;
	}

	/**
	 * @return the from
	 */
	public String getFrom() {
		return from;
	}

	/**
	 * @param from
	 *            the from to set
	 */
	public void setFrom(String from) {
		this.from = from;
	}

	/**
	 * @return the to
	 */
	public String getTo() {
		return to;
	}

	/**
	 * @param to
	 *            the to to set
	 */
	public void setTo(String to) {
		this.to = to;
	}

	/**
	 * @return the comment
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * @param comment
	 *            the comment to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the train
	 */
	public String getTrain() {
		return train;
	}

	/**
	 * @param train
	 *            the train to set
	 */
	public void setTrain(String train) {
		this.train = train;
	}

	/**
	 * @return the infoUrl
	 */
	public String getInfoUrl() {
		return infoUrl;
	}

	/**
	 * @param infoUrl
	 *            the infoUrl to set
	 */
	public void setInfoUrl(String infoUrl) {
		this.infoUrl = infoUrl;
	}
}
